import request from "@/utils/request";
// 用户状态
export function getUserStateApi() {
	return request.get('/brokerage/user/status')
}

// 活动账户
export function getAccountApi() {
	return request.get('/brokerage/user/account')
}

// 活动列表
export function getActivitiesApi() {
	return request.get('/marketing/activity/page')
}

// 排行榜
export function getRankApi(count) {
	return request.get('/brokerage/withdrawal/rank', {
		params: {
			count
		}
	})
}

// 奖励记录
export function getRewardApi(params) {
	return request.get('/brokerage/record/page', {
		params
	})
}

// 提现记录
export function getGrabApi(params) {
	return request.get('/brokerage/withdraw/page', {
		params
	})
}

// 领取登记
export function recordGrabApi(id) {
	return request.get('/pay/transfer/sync', {
		params: {
			id
		}
	})
}

// 提现记录详情
export function getGrabDetailApi(id) {
	return request.get(`/brokerage/withdraw/info`, {
		params: {
			withdrawId: id
		}
	})
}

// 是否可提现
export function checkGrableApi() {
	return request.get('/marketing/activity/haveActivity')
}